home *** CD-ROM | disk | FTP | other *** search
- #Inventor V2.0 ascii
- # Self Manipulating Cone
- Separator {
-
- # Interface for cone control
- Separator {
- BaseColor { rgb 1 0 0 }
- DEF PROF_PT_DRAGGER Translate2Dragger {
- translation 1 -1 0
- translator DEF DRAG_CUBE Separator {
- Cube { width .2 height .2 depth .2 }
- }
- translatorActive DEF DRAG_YELLOW_CUBE Separator {
- BaseColor { rgb 1 1 0 }
- Cube { width .2 height .2 depth .2 }
- }
- }
- }
- # Cone, controlled by above dragger
- Separator {
- BaseColor { rgb .8 .8 .8 }
- Cone {
- bottomRadius = DecomposeVec3f {
- vector = USE PROF_PT_DRAGGER . translation
- }
- . x
- height = Calculator {
- A = USE PROF_PT_DRAGGER . translation
- expression [ "oa = -2.0*A[1]" ]
- }
- . oa
- }
- }
- }
-